package com.ck.ck_back.pojo;

import lombok.Data;

import java.util.List;

public class Comment {
    private Integer commentId;

    private String commentContent;

    private Long createTime;

    private Boolean isDelete;

    private String userId;

    private Integer productionId;

    private Integer commentLike;

    private Integer toComment;

    private Long updateTime;

//    每条评论都由用户发出
    private User_comment user;

    //    每条评论都有多条子评论
    private List<Comment> children;

    public User_comment getUser() {
        return user;
    }

    public void setUser(User_comment user) {
        this.user = user;
    }

    public List<Comment> getChildren() {
        return children;
    }

    public void setChildren(List<Comment> children) {
        this.children = children;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getProductionId() {
        return productionId;
    }

    public void setProductionId(Integer productionId) {
        this.productionId = productionId;
    }

    public Integer getCommentLike() {
        return commentLike;
    }

    public void setCommentLike(Integer commentLike) {
        this.commentLike = commentLike;
    }


    public Integer getToComment() {
        return toComment;
    }

    public void setToComment(Integer toComment) {
        this.toComment = toComment;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "commentId=" + commentId +
                ", commentContent='" + commentContent + '\'' +
                ", createTime=" + createTime +
                ", isDelete=" + isDelete +
                ", userId='" + userId + '\'' +
                ", productionId=" + productionId +
                ", commentLike=" + commentLike +
                ", toComment=" + toComment +
                ", updateTime=" + updateTime +
                ", user=" + user +
                ", children=" + children +
                '}';
    }
}